@import '../variables/default.scss';
@import '../mixins/index.scss';

$at-indexes-prefixCls: '.at-indexes';

#{$at-indexes-prefixCls} {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;

  &-hide-character {
    .at-list::after,
    #{$at-indexes-prefixCls}__menu,
    #{$at-indexes-prefixCls}__list-title {
      display: none;
    }
  }

  &__content {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  &__menu {
    position: fixed;
    top: 50%;
    right: 0;
    overflow: hidden;
    transform: translate3d(0, -50%, 0);
    z-index: $zindex-indexes;
  }

  &__menu-item {
    padding: 2px $spacing-h-sm;
    color: $at-indexes-nav-color;
    font-size: $at-indexes-nav-font-size;
    text-align: center;
  }

  &__body {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  &__list {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    .at-list__item {
      &-extra {
        line-height: 1;
      }
    }

    .list-item-selected {
      color: $color-brand;

      .at-icon {
        color: $color-brand;
      }
    }
  }

  &__list-title {
    padding: $spacing-h-sm $spacing-v-lg;
    width: 100%;
    color: $at-indexes-title-color;
    font-size: $at-indexes-title-font-size;
    background-color: $at-indexes-title-bg-color;
    box-sizing: border-box;
    overflow: hidden;
  }
}
